#include <bits/stdc++.h>
using namespace std;

template<int num>
class fabo {
    public:
        static const int value = fabo<num-1>::value + fabo<num-2>::value;
};

template<>
class fabo<0> {
    public:
        static const int value = 0;
};


template<>
class fabo<1> {
    public:
        static const int value = 1;
};

int main(){
    // fabo<3> a;
    cout << fabo<3>::value << endl;
}